//
//  JQFYHomeBannerModel.m
//  JQFY
//
//  Created by 代辉 on 2017/10/9.
//  Copyright © 2017年 yannis. All rights reserved.
//

#import "JQFYHomeBannerModel.h"

@implementation JQFYHomeBannerModel {
    NSArray *_cycleImages;
}

- (void)getCycleImage:(void(^)(NSArray *cycleImages)) sucess file:(void(^)())file
{
    [[JQFYNetworkTool sharedManager] request:RequestMethodGet urlString:@"http://app.uninhibited.cn/api/show/ad/music" parameters:nil finished:^(id responseObject, NSError *error) {
        
        if (error) {
            if (file) {
                file();
            }
        } else {
            _cycleImages = [NSArray yy_modelArrayWithClass:[JQFYHomeBannerModel class] json:responseObject];
            if (sucess) {
                sucess(_cycleImages);
            }
        }
    }];
}

@end
